import request from '@/utils/request'

export default {

  // 1 生成统计数据
  createStatisticsByDate(day) {
    return request({
      url: `/itservice/statistics/createStatisticsByDate/${day}`,
      method: 'get'
    })
  },
  // 2 获取图表数据
  getShowData(searchObj) {
    return request({
      url: `/itservice/statistics/showData/${searchObj.type}/${searchObj.begin}/${searchObj.end}`,
      method: 'get'
    })
  },
  // 3 统计指定时间段的所有字段的人数接口
  showDataByIndex(begin,end) {
    return request({
      url: `/itservice/statistics/showDataByIndex/${begin}/${end}`,
      method: 'get'
    })
  }
}
